#Author: Guangfu Wang.

function(download_eigen_if_not_exist)
    conan_cmake_configure(REQUIRES eigen/3.4.0
        GENERATORS cmake_find_package)

    conan_cmake_autodetect(settings)

    conan_cmake_install(PATH_OR_REFERENCE .
                        BUILD missing
                        REMOTE conancenter
                        SETTINGS ${settings})
endfunction(download_eigen_if_not_exist)

